package com.xm;

import com.xm.mapper.AddDocumentMapper;
import com.xm.pojo.Sku;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AddDocumentApplication.class)
public class eshomeworkTest2 {

    @Autowired
    private AddDocumentMapper addDocumentMapper;

    @Test
    public void testSelect() {
        System.out.println(("----- selectAll method test ------"));
//        List<Sku> skuList = addDocumentMapper.selectList(null);
        Sku skuList = addDocumentMapper.selectById(30029571648l);
        //Assert.assertEquals(String.valueOf(30029571648l), String.valueOf(skuList.getId()));
        System.out.println("skuList = " + skuList);

    }
}

